﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DirectPayment.aspx.cs"
    Inherits="DigitalGoodsExample.DirectPayment" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>PayPal SDK - DoDirectPayment</title>
</head>
<body>
    <form id="DirectPayment" method="post" runat="server">
    <center>
        <font size="2" color="black" face="Verdana"><b>DoDirectPayment</b></font>
        <table>
            <tr>
                <td>
                    First Name:
                </td>
                <td>
                    <input name="firstName" id="firstName" type="text" maxlength="32" size="30" value="John"
                        runat="server">
                </td>
            </tr>
            <tr>
                <td>
                    Last Name:
                </td>
                <td>
                    <input name="lastName" id="lastName" type="text" maxlength="32" size="30" value="Doe"
                        runat="server">
                </td>
            </tr>
            <tr>
                <td>
                    Card Type:
                </td>
                <td>
                    <asp:DropDownList runat="server" ID="creditCardType" AutoPostBack="True" 
                        onselectedindexchanged="creditCardType_SelectedIndexChanged">
                        <asp:ListItem Selected="True" Value="Visa">Visa</asp:ListItem>
                        <asp:ListItem Value="MasterCard">MasterCard</asp:ListItem>
                        <asp:ListItem Value="Discover">Discover</asp:ListItem>
                        <asp:ListItem Value="Amex">American Express</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    Card Number:
                </td>
                <td>
                    <input id="creditCardNumber" name="creditCardNumber" type="text" maxlength="19" size="19"
                        value="" runat="server">
                </td>
            </tr>
            <tr>
                <td>
                    Expiration Date:
                </td>
                <td>
                    <select id="expdate_month" name="expdate_month" runat="server">
                        <option value="01" selected>01</option>
                        <option value="02">02</option>
                        <option value="03">03</option>
                        <option value="04">04</option>
                        <option value="05">05</option>
                        <option value="06">06</option>
                        <option value="07">07</option>
                        <option value="08">08</option>
                        <option value="09">09</option>
                        <option value="10">10</option>
                        <option value="11">11</option>
                        <option value="12">12</option>
                    </select>
                    <select id="expdate_year" name="expdate_year" runat="server">
                        <option value="2004">2004</option>
                        <option value="2005">2005</option>
                        <option value="2006">2006</option>
                        <option value="2007">2007</option>
                        <option value="2008">2008</option>
                        <option value="2009">2009</option>
                        <option value="2010">2010</option>
                        <option value="2011">2011</option>
                        <option value="2012" selected>2012</option>
                        <option value="2013">2013</option>
                        <option value="2014">2014</option>
                        <option value="2015">2015</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>
                    Card Verification Number:
                </td>
                <td>
                    <input id="cvv2Number" type="text" maxlength="4" size="3" value="962" name="cvv2Number"
                        runat="server">
                </td>
            </tr>
            <tr>
                <td>
                    <br>
                    <b>Billing Address:</b>
                </td>
                </TD>
            </tr>
            <tr>
                <td>
                    Address 1:
                </td>
                <td>
                    <input id="address1" type="text" maxlength="100" size="25" value="123 Fake St" name="address1"
                        runat="server">
                </td>
            </tr>
            <tr>
                <td>
                    Address 2:
                </td>
                <td>
                    <input id="address2" type="text" maxlength="100" size="25" name="address2" runat="server">(optional)
                </td>
            </tr>
            <tr>
                <td>
                    City:
                </td>
                <td>
                    <input id="city" type="text" maxlength="40" size="25" value="Omaha" name="city" runat="server">
                </td>
            </tr>
            <tr>
                <td>
                    State:
                </td>
                <td>
                    <select id="state" name="state" runat="server">
                        <option></option>
                        <option value="AK">AK</option>
                        <option value="AL">AL</option>
                        <option value="AR">AR</option>
                        <option value="AZ">AZ</option>
                        <option value="CA">CA</option>
                        <option value="CO">CO</option>
                        <option value="CT">CT</option>
                        <option value="DC">DC</option>
                        <option value="DE">DE</option>
                        <option value="FL">FL</option>
                        <option value="GA">GA</option>
                        <option value="HI">HI</option>
                        <option value="IA">IA</option>
                        <option value="ID">ID</option>
                        <option value="IL">IL</option>
                        <option value="IN">IN</option>
                        <option value="KS">KS</option>
                        <option value="KY">KY</option>
                        <option value="LA">LA</option>
                        <option value="MA">MA</option>
                        <option value="MD">MD</option>
                        <option value="ME">ME</option>
                        <option value="MI">MI</option>
                        <option value="MN">MN</option>
                        <option value="MO">MO</option>
                        <option value="MS">MS</option>
                        <option value="MT">MT</option>
                        <option value="NC">NC</option>
                        <option value="ND">ND</option>
                        <option value="NE" selected>NE</option>
                        <option value="NH">NH</option>
                        <option value="NJ">NJ</option>
                        <option value="NM">NM</option>
                        <option value="NV">NV</option>
                        <option value="NY">NY</option>
                        <option value="OH">OH</option>
                        <option value="OK">OK</option>
                        <option value="OR">OR</option>
                        <option value="PA">PA</option>
                        <option value="RI">RI</option>
                        <option value="SC">SC</option>
                        <option value="SD">SD</option>
                        <option value="TN">TN</option>
                        <option value="TX">TX</option>
                        <option value="UT">UT</option>
                        <option value="VA">VA</option>
                        <option value="VT">VT</option>
                        <option value="WA">WA</option>
                        <option value="WI">WI</option>
                        <option value="WV">WV</option>
                        <option value="WY">WY</option>
                        <option value="AA">AA</option>
                        <option value="AE">AE</option>
                        <option value="AP">AP</option>
                        <option value="AS">AS</option>
                        <option value="FM">FM</option>
                        <option value="GU">GU</option>
                        <option value="MH">MH</option>
                        <option value="MP">MP</option>
                        <option value="PR">PR</option>
                        <option value="PW">PW</option>
                        <option value="VI">VI</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>
                    ZIP Code:
                </td>
                <td>
                    <input id="zip" type="text" maxlength="10" size="10" value="68104" name="zip" runat="server">(5
                    or 9 digits)
                </td>
            </tr>
            <tr>
                <td>
                    Country:
                </td>
                <td>
                    United States
                </td>
            </tr>
            <tr>
                <td>
                    Amount:
                </td>
                <td>
                    <input id="amount" type="text" maxlength="7" size="4" value="1.00" name="amount"
                        runat="server">
                    <select id="currency" name="currency" runat="server">
                        <option value="USD" selected>USD</option>
                        <option value="GBP">GBP</option>
                        <option value="EUR">EUR</option>
                        <option value="JPY">JPY</option>
                        <option value="CAD">CAD</option>
                        <option value="AUD">AUD</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>
                    <td align="left">
                        <b></b>
                    </td>
            </tr>
            <tr>
                <td class="field">
                </td>
                <td>
                    <asp:Button ID="PayButton" runat="server" Text="Submit" 
                        onclick="PayButton_Click"></asp:Button>
                </td>
            </tr>
        </table>
    </center>
    </form>
</body>
</html>
